package com.wanxi.dangdang.service;

import com.github.pagehelper.PageInfo;
import com.wanxi.dangdang.model.vo.PermissionFindPageVO;
import com.wanxi.dangdang.model.pojo.Permission;
import com.wanxi.dangdang.model.vo.PermissionFindByIdVo;
import com.wanxi.dangdang.model.vo.PermissionVo;

import java.util.List;

/**
 * @Author: 吕永杰
 * @Description:
 * @Date: Created in 2021/9/1
 * @Version: 1.0
 */
public interface PermissionService {
    List<Permission> getPermissionsByUserId(Long id);

    void add(Permission permission);

    PermissionFindByIdVo findById(Long id);

    PageInfo<PermissionFindPageVO> findPage(PermissionVo permissionVo);

    void deleteById(Long id);

    void updateById(Permission permission);

    List<PermissionFindPageVO> findPermissionsByRoleId(Long id);

    String checkName(String name);
}
